require(['./config'], () => {
  require(['jquery', 'template', 'CartEvent'], ($, template, CartEvent) => {
    class Cart {
      constructor () {
        this.loadPublic()

        new CartEvent()
      }

      loadPublic () {
        $('.shortcut').load('/HTML/shortcut.html')
        $('.footer').load('/HTML/footer.html')
      }
    }

    new Cart()
  })
})
